package course.pojo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author HLF
 * @since 2022-06-30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Teacher implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 教师编码
     */
    private Integer tid;

    /**
     * 教师名称
     */
    private String tname;

    /**
     * 性别
     */
    private String tsex;

    /**
     * 手机号
     */
    private String tphone;

    /**
     * email
     */
    private String temail;

    /**
     * 学院id
     */
    private Integer cid;

    /**
     * 教师登录密码
     */
    private String tpassword;


    public Teacher(Integer tid, String tname, String tsex, String tphone, String temail, Integer cid) {
        this.tid = tid;
        this.tname = tname;
        this.tsex = tsex;
        this.tphone = tphone;
        this.temail = temail;
        this.cid = cid;
        this.tpassword = "$2a$10$W8iLBJpGD8O/rFjeK3Gun.mymjKIDSYAL3CW/bGOFVRrEgdp2bjgm";//123456
    }
}
